package com.wxmit.module.system.mapper;

import com.wxmit.module.system.domain.SysRole;
import com.wxmit.system.base.core.ShushanBaseMapper;
import com.wxmit.system.domain.SysRoleDTO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Description SysRoleMapper
 * @Author huangxiong
 * @Date 2022/7/11 14:39
 * @Version V1.0
 */
@Mapper
public interface SysRoleMapper extends ShushanBaseMapper<SysRoleMapper,SysRole> {

    /**
     *  查询角色信息和角色绑定的菜单
     * @return SysRoleDTO（without deptIds）
     */
    List<SysRoleDTO> selectRoleByPes();

    /**
     *  查询客户自定义权限绑定的部门
     * @param customDpIds roleId
     * @return roleDTO with deptIds
     */
    List<SysRoleDTO> selectCustomDpDetailById(@Param("list") Collection<Long> customDpIds);
}
